<?php echo $this->Session->flash('auth'); ?>
<?php echo $this->Form->create('User', array('class' => 'form-horizontal', 'inputDefaults' => array('label' => false))) ?>
<fieldset>
    <h2><kbd>Login</kbd></h2>
    <hr/>
    <div class="form-group">
        <label for="username" class="col-sm-2 control-label">User Name</label>
        <div class="col-sm-4">
            <?php echo $this->Form->input('username', array('class' => 'form-control', 'placeholder' => 'User name ...')); ?>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="password">Password</label>
        <div class="col-sm-4">
            <?php echo $this->Form->input('password', array('class' => 'form-control', 'placeholder' => 'Password ...')); ?>
        </div>

    </div>
    <div class="form-group">
        <div class="col-sm-4 col-sm-offset-2">
            <?php echo $this->Form->Submit('Submit', array('class' => 'btn btn-primary')) ?>
        </div>

    </div>
</fieldset>
<?php echo $this->Form->end(); ?>
<hr/>
<div class="row">
    <p class="col-md-2 col-md-push-4"><?php echo $this->Html->link('Forgot password', array('controller' => 'users', 'action' => 'resetpassword'), array('class' => 'btn btn-warning btn-sm')); ?></p>
    <p class="col-md-2"><?php echo $this->Html->link('New User', array('controller' => 'users', 'action' => 'add'), array('class' => 'btn btn-success btn-sm')); ?></p>

</div>

